﻿using DLog.Model;
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DLog.SqlServerDal
{
    public class DLogContext:DbContext
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public DLogContext()
            : base("name=DefaultConnection")
        {
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        public DLogContext(string connectionString)
            : base("name=" + connectionString)
        {
        }
        /// <summary>
        /// 日志表
        /// </summary>
        public DbSet<LogModel> Logs { set; get; }
    }
}
